import { Module } from "@nestjs/common";
import { LoginService } from "./login.service";
import LoginController from "./login.controller";
import { User, UserSchema } from "./schemas/user.schema";
import { MongooseModule } from "@nestjs/mongoose";

@Module({
  imports: [
    MongooseModule.forFeature([{ name: User.name, schema: UserSchema }]), // 关联数据库
  ],
  controllers: [LoginController],
  providers: [LoginService],
})
export class LoginModule {}
